﻿/*------------------------------------------------
// File Description: k_cp DataBase Entity
// Author:			 Crane
// Create Time:		 2021-05-08 17:04:36
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.OldMes.DataAccess.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [Table("k_cp")]
    public class ModelCabinet
    {
        private string _salverNo = string.Empty;
        private string _workShop = string.Empty;
        private string _orderNo = string.Empty;
        private string _plateType = string.Empty;
        private string _modulLevel = string.Empty;
        private string _modulColor = string.Empty;
        private string _subFile = string.Empty;
        private string _tCell = string.Empty;
        private string _tTpt = string.Empty;
        private string _tBox = string.Empty;
        private string _tFrame = string.Empty;
        private string _packType = string.Empty;
        private string _inRemark = string.Empty;
        private string _inOp = string.Empty;
        private string _inNo = string.Empty;
        private string _conOp = string.Empty;
        private string _conNo = string.Empty;
        private string _storageLocation = string.Empty;
        private string _barNo = string.Empty;
        private string _outOrder = string.Empty;
        private string _outOp = string.Empty;
        private string _outNo = string.Empty;
        private string _checkOp = string.Empty;
        private string _checkNo = string.Empty;

        #region Public Property

        ///<Summary>
        /// id
        ///</Summary>
        public int id { get; set; }

        ///<Summary>
        /// salverNo
        ///</Summary>
        public string salverNo
        {
            get { return string.IsNullOrWhiteSpace(_salverNo) ? string.Empty : _salverNo; }
            set { _salverNo = value; }
        }

        ///<Summary>
        /// workShop
        ///</Summary>
        public string workShop
        {
            get { return string.IsNullOrWhiteSpace(_workShop) ? string.Empty : _workShop; }
            set { _workShop = value; }
        }

        ///<Summary>
        /// orderNo
        ///</Summary>
        public string orderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// plateType
        ///</Summary>
        public string plateType
        {
            get { return string.IsNullOrWhiteSpace(_plateType) ? string.Empty : _plateType; }
            set { _plateType = value; }
        }

        ///<Summary>
        /// ratedPower
        ///</Summary>
        public int? ratedPower { get; set; }

        ///<Summary>
        /// modulLevel
        ///</Summary>
        public string modulLevel
        {
            get { return string.IsNullOrWhiteSpace(_modulLevel) ? string.Empty : _modulLevel; }
            set { _modulLevel = value; }
        }

        ///<Summary>
        /// modulColor
        ///</Summary>
        public string modulColor
        {
            get { return string.IsNullOrWhiteSpace(_modulColor) ? string.Empty : _modulColor; }
            set { _modulColor = value; }
        }

        ///<Summary>
        /// subFile
        ///</Summary>
        public string subFile
        {
            get { return string.IsNullOrWhiteSpace(_subFile) ? string.Empty : _subFile; }
            set { _subFile = value; }
        }

        ///<Summary>
        /// tCell
        ///</Summary>
        public string tCell
        {
            get { return string.IsNullOrWhiteSpace(_tCell) ? string.Empty : _tCell; }
            set { _tCell = value; }
        }

        ///<Summary>
        /// tTpt
        ///</Summary>
        public string tTpt
        {
            get { return string.IsNullOrWhiteSpace(_tTpt) ? string.Empty : _tTpt; }
            set { _tTpt = value; }
        }

        ///<Summary>
        /// tBox
        ///</Summary>
        public string tBox
        {
            get { return string.IsNullOrWhiteSpace(_tBox) ? string.Empty : _tBox; }
            set { _tBox = value; }
        }

        ///<Summary>
        /// tFrame
        ///</Summary>
        public string tFrame
        {
            get { return string.IsNullOrWhiteSpace(_tFrame) ? string.Empty : _tFrame; }
            set { _tFrame = value; }
        }

        ///<Summary>
        /// packQty
        ///</Summary>
        public int? packQty { get; set; }

        ///<Summary>
        /// packType
        ///</Summary>
        public string packType
        {
            get { return string.IsNullOrWhiteSpace(_packType) ? string.Empty : _packType; }
            set { _packType = value; }
        }

        ///<Summary>
        /// inRemark
        ///</Summary>
        public string inRemark
        {
            get { return string.IsNullOrWhiteSpace(_inRemark) ? string.Empty : _inRemark; }
            set { _inRemark = value; }
        }

        ///<Summary>
        /// inOp
        ///</Summary>
        public string inOp
        {
            get { return string.IsNullOrWhiteSpace(_inOp) ? string.Empty : _inOp; }
            set { _inOp = value; }
        }

        ///<Summary>
        /// inNo
        ///</Summary>
        public string inNo
        {
            get { return string.IsNullOrWhiteSpace(_inNo) ? string.Empty : _inNo; }
            set { _inNo = value; }
        }

        ///<Summary>
        /// inTime
        ///</Summary>
        public DateTime? inTime { get; set; }

        ///<Summary>
        /// conOp
        ///</Summary>
        public string conOp
        {
            get { return string.IsNullOrWhiteSpace(_conOp) ? string.Empty : _conOp; }
            set { _conOp = value; }
        }

        ///<Summary>
        /// conNo
        ///</Summary>
        public string conNo
        {
            get { return string.IsNullOrWhiteSpace(_conNo) ? string.Empty : _conNo; }
            set { _conNo = value; }
        }

        ///<Summary>
        /// conTime
        ///</Summary>
        public DateTime? conTime { get; set; }

        ///<Summary>
        /// storageLocation
        ///</Summary>
        public string storageLocation
        {
            get { return string.IsNullOrWhiteSpace(_storageLocation) ? string.Empty : _storageLocation; }
            set { _storageLocation = value; }
        }

        ///<Summary>
        /// barNo
        ///</Summary>
        public string barNo
        {
            get { return string.IsNullOrWhiteSpace(_barNo) ? string.Empty : _barNo; }
            set { _barNo = value; }
        }

        ///<Summary>
        /// outOrder
        ///</Summary>
        public string outOrder
        {
            get { return string.IsNullOrWhiteSpace(_outOrder) ? string.Empty : _outOrder; }
            set { _outOrder = value; }
        }

        ///<Summary>
        /// outOp
        ///</Summary>
        public string outOp
        {
            get { return string.IsNullOrWhiteSpace(_outOp) ? string.Empty : _outOp; }
            set { _outOp = value; }
        }

        ///<Summary>
        /// outNo
        ///</Summary>
        public string outNo
        {
            get { return string.IsNullOrWhiteSpace(_outNo) ? string.Empty : _outNo; }
            set { _outNo = value; }
        }

        ///<Summary>
        /// outTime
        ///</Summary>
        public DateTime? outTime { get; set; }

        ///<Summary>
        /// checkOp
        ///</Summary>
        public string checkOp
        {
            get { return string.IsNullOrWhiteSpace(_checkOp) ? string.Empty : _checkOp; }
            set { _checkOp = value; }
        }

        ///<Summary>
        /// checkNo
        ///</Summary>
        public string checkNo
        {
            get { return string.IsNullOrWhiteSpace(_checkNo) ? string.Empty : _checkNo; }
            set { _checkNo = value; }
        }

        ///<Summary>
        /// checkTime
        ///</Summary>
        public DateTime? checkTime { get; set; }
        #endregion
    }

    public partial class OldMESContext
    {
        /// <summary>
        /// 
        /// </summary>
        public virtual DbSet<ModelCabinet> ModelCabinets { get; set; }
    }
}